<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">

    <title>【58代言】城市合伙人 - 登录</title>
    <meta name="keywords" content="城市合伙人,登录,58代言">
    <meta name="description" content="【58代言】城市合伙人 ">
    <link href="/Partner/static/css/bootstrap.min.css" rel="stylesheet">
    <link href="/Partner/static/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <link href="/Partner/static/css/animate.min.css" rel="stylesheet">
    <link href="/Partner/static/css/style.min.css" rel="stylesheet">
    <link href="/Partner/static/css/login.min.css" rel="stylesheet">
    <!--[if lt IE 8]>
    <meta http-equiv="refresh" content="0;ie.html" />
    <![endif]-->
    <script>
        if(window.top!==window.self){window.top.location=window.location};
    </script>

</head>

<body class="signin">
    <div class="signinpanel">
        <div class="row">
            <div class="col-sm-7">
                <div class="signin-info">
                    <div class="logopanel m-b">
                        <h1>[ 58代言 ]</h1>
                    </div>
                    <div class="m-b"></div>
                    <h4>欢迎使用 <strong>58代言 城市合伙人管理后台</strong></h4>
                    <ul class="m-b">
                        <li><i class="fa fa-arrow-circle-o-right m-r-xs"></i> “58代言”的使命：让数据点亮节能！</li>
                        <li><i class="fa fa-arrow-circle-o-right m-r-xs"></i> “58代言”的愿景：最专业的第三方节能服务平台！</li>
                        <li><i class="fa fa-arrow-circle-o-right m-r-xs"></i> “58代言”的价值观：专一、实效、开放、创新！</li>
                        <li><i class="fa fa-arrow-circle-o-right m-r-xs"></i> “58代言”的经营宗旨：务本求实、相互成就！</li>

                    </ul>
                    <!-- <strong>还没有账号？ <a href="#">立即注册&raquo;</a></strong>-->
                </div>
            </div>
            <div class="col-sm-5">
                <form method="post" action="index.html">
                    <h4 class="no-margins">登录：</h4>
                    <p class="m-t-md">登录到58代言城市合伙人管理后台</p>
                    <input type="text" class="form-control uname" placeholder="用户名" />
                    <input type="password" class="form-control pword m-b" placeholder="密码" />
                    <!--<a href="">忘记密码了？</a>-->
                    <a class="btn btn-success btn-block login">登录</a>
                </form>
            </div>
        </div>
        <div class="signup-footer">
            <div class="pull-left">
                &copy; 2018 All Rights Reserved. 58代言
            </div>
        </div>
    </div>
</body>
<script src="/Partner/static/js/jquery.min.js"></script>

<link href="/Partner/static/css/plugins/sweetalert/sweetalert.css" rel="stylesheet">
<script src="/Partner/static/js/plugins/sweetalert/sweetalert.min.js"></script>
<script>
    $('.login').click(function () {
        var uname=$('.uname').val();
        var pword=$('.pword').val();
        $.post(
            "{:U('User/login')}",
            {uname:uname,pword:pword},
            function(result){

                if(result.code==0){
                    swal({
                        title:result.message,
                        text:"",
                        type:"warning"
                    })
                }
                if(result.code==1){
                    swal({
                        title:result.message,
                        text:"正在进入...",
                        type:"success"
                    })
                    setTimeout("location.href='"+result.data+"'",1000)
                }

            }
        );
    })
</script>
</html>